import random
with open("MAC地址.txt","w") as f:
    for i in range(100):
        mac1 = "01-AF-3B"
        for d in range(3):
            a = random.randint(0,16)
            c = random.randint(0, 16)
            b = hex(a).strip("0x").zfill(1)
            b1 = hex(c).strip("0x").zfill(1)
            mac1 = f"{mac1}-{b}{b1}".upper()
        mac2 = f"{mac1}\n"
        f.write(mac2)

import string
print(string.hexdigits)